<template>
    <div v-loading="loading" :style="'height:'+ height">
      <iframe :src="$route.query.modelId?editSrc:src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
    </div>
  </template>
  <script>
  export default {
    name: "editWorkFlow",
    data() {
      return {
        // editSrc:"http://49.4.65.194:8088/modeler.html?modelId="+this.$route.query.modelId,
        editSrc:"http://localhost:9999/jshERP-boot/modeler.html?modelId="+this.$route.query.modelId,
        src:  "http://localhost:9999/jshERP-boot/model/create",
        height: document.documentElement.clientHeight - 94.5 + "px;",
        loading: true
      };
    },
    mounted: function() {
      setTimeout(() => {
        this.loading = false;
      }, 230);
      const that = this;
      window.onresize = function temp() {
        that.height = document.documentElement.clientHeight - 94.5 + "px;";
      };
    },
    created() {
  
    },
  };
  </script>
  